﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Linq.Mapping;

namespace VehicleManagement.Models
{
    [Table(Name = "Track")]
    public class Track
    {
        [Column(IsPrimaryKey = true)]
        public int TrackID { get; set; } //同时也是审批表的外键

        [Column]
        public int DriverID { get; set; }

        [Column]
        public string DriverName { get; set; }

        [Column]
        public int CarID { get; set; }

        [Column]
        public string CarNumber { get; set; }

        [Column]
        public double TimeCost { get; set; }

        [Column]
        public string Beginning { get; set; }

        [Column]
        public string Destination { get; set; }

        [Column]
        public string Usage { get; set; }

        [Column]
        public DateTime? ApplyTime { get; set; }

        [Column]
        public int State { get; set; }
    }
}